import request from '@/utils/request'

export function getIndexList(data) {
  return request({
    url: '/notice/IndexList/' + data,
    method: 'get',
  })
}

export function getNoticeList(data) {
  return request({
      url: '/notice/selectAll',
      method: 'get',
      params: data
  })
}

export function deleteById(data) {
  return request({
    url: '/notice/delete/' + data,
    method: 'delete',
  })
}

export function updateNotice(data) {
  return request({
      url: '/notice/update',
      method: 'put',
      data
  })
}

export function insertNotice(data) {
  return request({
      url: '/notice/insert',
      method: 'post',
      data
  })
}